
import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

// 引入element-ui
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

// 引入vue-router
import VueRouter from "vue-router";

Vue.use(VueRouter);

// 引入axios
import axios from "axios";

axios.defaults.baseURL = 'http://mayestudio.com:8999';
axios.defaults.validateStatus = val => val >= 200 && val <= 500;
Vue.prototype.$axios = axios;

// 引入路由的配置
import router from "@/router/router";

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')